package com.example.yls.optimizationeeviewtest;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;

/**
 * Created by yls on 2018/10/17.
 */

public class TitleLayout extends LinearLayout{
    public TitleLayout(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        LayoutInflater.from(context).inflate(R.layout.title,this);
        Button quit=(Button)findViewById(R.id.quit);
        quit.setOnClickListener(new OnClickListener() {

            public void onClick(View view) {
                Log.e("TitleLayout","1111");
                 new BaseActivity().finshAll();
            }
        });
    }
}


